package org.openkoala.koala.popup.javaclass.crud;

import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.Viewer;
import org.openkoala.koala.deploy.curd.module.ui.Model;

public class FieldTableContentProvider implements IStructuredContentProvider {

	private Model model;
	
	public FieldTableContentProvider(Model model) {
		this.model = model;
	}
	
    @Override
    public void dispose() {
    }

    @Override
    public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
    }

    @Override
    public Object[] getElements(Object inputElement) {
        return model.getViews().toArray();
    }
    
}
